<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../img/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>
<script language="javascript" type="text/javascript">
/*function setcontent()
{
	var item = $("select[@name=msg_list] option[@selected]").text();
	$("#msg_content").attr("value", item);
}*/
	function checklenstr(obj)
	{
		var content = $.trim($('#msg_content').val());
		var len = content.length;
		if( 66-len<0 )
		{
			content = content.substr(0, 66);
			$('#msg_content').val(content);
			$("#span_msg").html('您已输入了66个字，不允许继续输入。');
		}
		else
		{
			$("#span_msg").html('您已输入了'+len+'个字，还剩余'+(66-len)+'个字。');
		}
	}
	
	function checkSubmit(){
		var content = $.trim($('#msg_content').val());
		if(content.length < 1){
			alert('请输入短信内容');
			return false;
		}
		else
		{
			if(confirm("确定开始发送短信？")){
				$("#tosend").attr("disabled" , "disabled");
				$("#send_remind").html("（发送短信中，请不要关闭窗口！）");
				return true;
			}
			else
			{
				return false;
			}
			
		}
	}
	
</script>
</head>
<body topmargin="8">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" style="border-bottom:1px solid #CCCCCC">
	<tr>
    	<td align='center' valign='top' colspan="2">
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
                <tr>
                    <td height="26" background="../img/newlinebg3.gif">
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="right">
                                    <input type='button' class="coolbg np" onClick="location='invite_list.php';" value='返回' />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
    	<td>
        	<table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr bgcolor="#FFFFFF">
                    <td height="4"></td>
                </tr>
            </table>
        </td>
    </tr>
  	<tr>
    	<td>
      		<table width="800" border="0" cellpadding="0" cellspacing="0">
        		<tr>
          			<td width="84" height="24" align="center" background="../img/itemnote1.gif">&nbsp;发送激活短信&nbsp;</td>
          			<td width="84"></td>
          			<td>&nbsp;</td>
        		</tr>
      		</table>
    	</td>
	</tr>
</table>
<form name="form1" action="invite_list.php" method="post" onSubmit="return checkSubmit()">
<table width="98%"  border="0" align="center" cellpadding="2" cellspacing="2" id="needset">
  	<tr>
    	<td class="bline" valign="top">
      		<table width="100%" border="0" cellspacing="0" cellpadding="5">
        		
                <{if $one_mob}>
                <input type="hidden" value="onesend" name="op" />
                <tr>
                	<td width="120px">&nbsp;接收手机号码：</td>
                    <td><{$one_mob}></td>
                </tr>
                <{else}>
                <input type="hidden" value="send" name="op" />
                <tr>
               		<td width="120px">&nbsp;选择的搜索条件：</td>
                    <td>
                    手机号码：<{if $mobile}><{$mobile}><{else}> 无 <{/if}>&nbsp;&nbsp;&nbsp;
                    激活状态：<{if $is_active eq 1}>已激活<{elseif $is_active eq 0}>未激活<{else}>全部<{/if}>&nbsp;&nbsp;&nbsp;
                    添加日期：<{if $add_start_date}><{$add_start_date}><{else}> - <{/if}> 到 
                    <{if $add_end_date}><{$add_end_date}><{else}> - <{/if}>&nbsp;&nbsp;&nbsp;
                    激活日期：<{if $active_start_date}><{$active_start_date}><{else}> - <{/if}> 到 
                    <{if $active_end_date}><{$active_end_date}><{else}> - <{/if}>&nbsp;&nbsp;&nbsp;
                    发送状态：<{if $is_send eq 1}>已发送<{elseif $is_send eq 0}>未发送<{else}>全部<{/if}>&nbsp;&nbsp;&nbsp;
                    </td>
        		</tr>
                <{if $count}>
                <tr>
          			<td width="120px">&nbsp;手机总数：</td>
          			<td style="color:#F00">
            			<{$count}> 个
          			</td>
        		</tr>
                <{/if}>
                
                <{/if}>
        		<tr>
          			<td width="120px">&nbsp;短信内容：</td>
          			<td width="">
            			<textarea name="msg_content" rows="5" id="msg_content" style="width:50%" onkeyup="return checklenstr();"></textarea>
		        <span id="span_msg" style="color:red;"></span>&nbsp;&nbsp;例如：您的激活码是xxx，请知悉！<br />
                        <span style="color:#F00">* 激活码位置请用 xxx 代替</span> 
          			</td>
        		</tr>
      		</table>      
    	</td>
  	</tr>
</table>

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    	<td height="56">
			<table width="98%" border="0" cellspacing="1" cellpadding="1">
        		<tr>
          			<td align="center">
          				<table width="500" border="0" cellspacing="0" cellpadding="0" >
              				<tr>
				                <td width="115">
                                	<input type="hidden" name="is_active" value="<{$is_active}>" />
                                	<input type="hidden" name="mobile" value="<{$mobile}>" />
                                    <input type="hidden" name="add_start_date" value="<{$add_start_date}>" />
                                    <input type="hidden" name="add_end_date" value="<{$add_end_date }>" />
                                    <input type="hidden" name="active_start_date" value="<{$active_start_date}>" />
                                    <input type="hidden" name="active_end_date" value="<{$active_end_date}>" />
                                    <input type="hidden" name="is_send" value="<{$is_send}>" />
                                    <input type="hidden" name="one_mob" value="<{$one_mob}>" />
				                    <input name="imageField" id="tosend" type="image" src="../img/button_ok.gif" width="60" height="22" class="np" border="0"  style="cursor:pointer; ">
				                </td>
				                <td width="99">
				                	<img src="../img/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:pointer; ">
				                </td>
                                <td width="200"><span id="send_remind"></span></td>
			              	</tr>
						</table>
					</td>
    			</tr>
			</table>
		</td>
	</tr>
</table>
</form>
</body>

</html>